<?php
$form = $this->beginWidget('PsActiveForm', array(
	'id' => 'admin-accounts-addaccount-form',
	'enableAjaxValidation' => FALSE
		));
?>
<div class="">
	<table class="form-table">
		<tr>
			<th width="120" scope="row">
				<?php echo $form->labelEx($glAccount, 'name'); ?>
			</th>
			<td>
				<div class="">
					<?php echo $form->textField($glAccount, 'name'); ?>
					<?php echo $form->error($glAccount, 'name'); ?>
				</div>

			</td>
		</tr>
		<tr>
			<th width="120" scope="row">
				<?php echo $form->labelEx($glAccount, 'gl_account_type_code', array('label' => 'Type')); ?>
			</th>
			<td>
				<div class="">
					<?php echo $form->dropDownList($glAccount, 'gl_account_type_code', CHtml::listData(GlAccountType::model()->findAll(), 'description', 'code'), array('prompt' => '[Select]')); ?>
					<?php echo $form->error($glAccount, 'gl_account_type_code'); ?>
				</div>

			</td>
		</tr>
		<tr>
			<th width="120" scope="row">
				<?php echo $form->labelEx($glAccount, 'description'); ?>
			</th>
			<td>
				<div class="">
					<?php echo $form->textField($glAccount, 'description', array('size' => 60)); ?>
					<?php echo $form->error($glAccount, 'description'); ?>
				</div>

			</td>
		</tr>
		<tr>
			<th width="120" scope="row">
				<?php echo $form->labelEx($glAccount, 'code'); ?>
			</th>
			<td>
				<div class="">
					<?php echo $form->textField($glAccount, 'code'); ?>
					<?php echo $form->error($glAccount, 'code'); ?>
				</div>

			</td>
		</tr>
	</table>
	<table class="form-table">
		<th>
			<button type="submit" class="link-button round_all no-margin">
				<span>Save Changes</span>
			</button>
		</th>
	</table>
</div>

<?php $this->endWidget(); ?>